<?xml version="1.0" encoding="ascii"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
          "DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title>killerbee.dev_rzusbstick.RZUSBSTICK</title>
  <link rel="stylesheet" href="epydoc.css" type="text/css" />
  <script type="text/javascript" src="epydoc.js"></script>
</head>

<body bgcolor="white" text="black" link="blue" vlink="#204080"
      alink="#204080">
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="killerbee-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Project homepage -->
      <th class="navbar" align="right" width="100%">
        <table border="0" cellpadding="0" cellspacing="0">
          <tr><th class="navbar" align="center"
            ><a class="navbar" target="_top" href="http://code.google.com/p/killerbee/">KillerBee</a></th>
          </tr></table></th>
  </tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0">
  <tr valign="top">
    <td width="100%">
      <span class="breadcrumbs">
        <a href="killerbee-module.html">Package&nbsp;killerbee</a> ::
        <a href="killerbee.dev_rzusbstick-module.html">Module&nbsp;dev_rzusbstick</a> ::
        Class&nbsp;RZUSBSTICK
      </span>
    </td>
    <td>
      <table cellpadding="0" cellspacing="0">
        <!-- hide/show private -->
        <tr><td align="right"><span class="options">[<a href="javascript:void(0);" class="privatelink"
    onclick="toggle_private();">hide&nbsp;private</a>]</span></td></tr>
        <tr><td align="right"><span class="options"
            >[<a href="frames.html" target="_top">frames</a
            >]&nbsp;|&nbsp;<a href="killerbee.dev_rzusbstick.RZUSBSTICK-class.html"
            target="_top">no&nbsp;frames</a>]</span></td></tr>
      </table>
    </td>
  </tr>
</table>
<!-- ==================== CLASS DESCRIPTION ==================== -->
<h1 class="epydoc">Class RZUSBSTICK</h1><p class="nomargin-top"><span class="codelink"><a href="killerbee.dev_rzusbstick-pysrc.html#RZUSBSTICK">source&nbsp;code</a></span></p>
<!-- ==================== INSTANCE METHODS ==================== -->
<a name="section-InstanceMethods"></a>
<table class="summary" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
  <td colspan="2" class="table-header">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
      <tr valign="top">
        <td align="left"><span class="table-header">Instance Methods</span></td>
        <td align="right" valign="top"
         ><span class="options">[<a href="#section-InstanceMethods"
         class="privatelink" onclick="toggle_private();"
         >hide private</a>]</span></td>
      </tr>
    </table>
  </td>
</tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">None</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="killerbee.dev_rzusbstick.RZUSBSTICK-class.html#__init__" class="summary-sig-name">__init__</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">dev</span>,
        <span class="summary-sig-arg">bus</span>)</span><br />
      Instantiates the KillerBee class for the RZUSBSTICK hardware.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="killerbee.dev_rzusbstick-pysrc.html#RZUSBSTICK.__init__">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr class="private">
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="killerbee.dev_rzusbstick.RZUSBSTICK-class.html#__handle_open" class="summary-sig-name" onclick="show_private();">__handle_open</a>(<span class="summary-sig-arg">self</span>)</span><br />
      Opens the device identified as self.dev, populating self.handle.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="killerbee.dev_rzusbstick-pysrc.html#RZUSBSTICK.__handle_open">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr class="private">
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="__dev_setup_v1x"></a><span class="summary-sig-name">__dev_setup_v1x</span>(<span class="summary-sig-arg">self</span>)</span></td>
          <td align="right" valign="top">
            <span class="codelink"><a href="killerbee.dev_rzusbstick-pysrc.html#RZUSBSTICK.__dev_setup_v1x">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr class="private">
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="__handle_open_v0x"></a><span class="summary-sig-name">__handle_open_v0x</span>(<span class="summary-sig-arg">self</span>)</span></td>
          <td align="right" valign="top">
            <span class="codelink"><a href="killerbee.dev_rzusbstick-pysrc.html#RZUSBSTICK.__handle_open_v0x">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">None</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="killerbee.dev_rzusbstick.RZUSBSTICK-class.html#close" class="summary-sig-name">close</a>(<span class="summary-sig-arg">self</span>)</span><br />
      Closes the device handle.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="killerbee.dev_rzusbstick-pysrc.html#RZUSBSTICK.close">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="check_capability"></a><span class="summary-sig-name">check_capability</span>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">capab</span>)</span></td>
          <td align="right" valign="top">
            <span class="codelink"><a href="killerbee.dev_rzusbstick-pysrc.html#RZUSBSTICK.check_capability">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="get_capabilities"></a><span class="summary-sig-name">get_capabilities</span>(<span class="summary-sig-arg">self</span>)</span></td>
          <td align="right" valign="top">
            <span class="codelink"><a href="killerbee.dev_rzusbstick-pysrc.html#RZUSBSTICK.get_capabilities">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr class="private">
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">None</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="killerbee.dev_rzusbstick.RZUSBSTICK-class.html#__set_capabilities" class="summary-sig-name" onclick="show_private();">__set_capabilities</a>(<span class="summary-sig-arg">self</span>)</span><br />
      Sets the capability information for RZUSB devices.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="killerbee.dev_rzusbstick-pysrc.html#RZUSBSTICK.__set_capabilities">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">List</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="killerbee.dev_rzusbstick.RZUSBSTICK-class.html#get_dev_info" class="summary-sig-name">get_dev_info</a>(<span class="summary-sig-arg">self</span>)</span><br />
      Returns device information in a list identifying the device 
      identifier, product string and serial number in a list of strings.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="killerbee.dev_rzusbstick-pysrc.html#RZUSBSTICK.get_dev_info">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr class="private">
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="killerbee.dev_rzusbstick.RZUSBSTICK-class.html#__usb_write" class="summary-sig-name" onclick="show_private();">__usb_write</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">endpoint</span>,
        <span class="summary-sig-arg">data</span>)</span><br />
      Write data to the USB device opened as self.handle.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="killerbee.dev_rzusbstick-pysrc.html#RZUSBSTICK.__usb_write">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr class="private">
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">None</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="killerbee.dev_rzusbstick.RZUSBSTICK-class.html#_set_mode" class="summary-sig-name" onclick="show_private();">_set_mode</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">mode</span>=<span class="summary-sig-default">0</span>)</span><br />
      Change the operating mode of the USB device to one of the 
      RZ_CMD_MODE_* values.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="killerbee.dev_rzusbstick-pysrc.html#RZUSBSTICK._set_mode">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr class="private">
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="_open_stream"></a><span class="summary-sig-name">_open_stream</span>(<span class="summary-sig-arg">self</span>)</span><br />
      Opens a data stream for receiving packets.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="killerbee.dev_rzusbstick-pysrc.html#RZUSBSTICK._open_stream">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr class="private">
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="_close_stream"></a><span class="summary-sig-name">_close_stream</span>(<span class="summary-sig-arg">self</span>)</span><br />
      Closes a data stream.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="killerbee.dev_rzusbstick-pysrc.html#RZUSBSTICK._close_stream">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">None</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="killerbee.dev_rzusbstick.RZUSBSTICK-class.html#sniffer_on" class="summary-sig-name">sniffer_on</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">channel</span>=<span class="summary-sig-default">None</span>)</span><br />
      Turns the sniffer on such that pnext() will start returning observed 
      data.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="killerbee.dev_rzusbstick-pysrc.html#RZUSBSTICK.sniffer_on">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">None</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="killerbee.dev_rzusbstick.RZUSBSTICK-class.html#sniffer_off" class="summary-sig-name">sniffer_off</a>(<span class="summary-sig-arg">self</span>)</span><br />
      Turns the sniffer off, freeing the hardware for other functions.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="killerbee.dev_rzusbstick-pysrc.html#RZUSBSTICK.sniffer_off">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">None</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="killerbee.dev_rzusbstick.RZUSBSTICK-class.html#jammer_on" class="summary-sig-name">jammer_on</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">channel</span>=<span class="summary-sig-default">None</span>)</span><br />
      Not yet implemented.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="killerbee.dev_rzusbstick-pysrc.html#RZUSBSTICK.jammer_on">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">None</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="killerbee.dev_rzusbstick.RZUSBSTICK-class.html#jammer_off" class="summary-sig-name">jammer_off</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">channel</span>=<span class="summary-sig-default">None</span>)</span><br />
      Not yet implemented.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="killerbee.dev_rzusbstick-pysrc.html#RZUSBSTICK.jammer_off">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">None</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="killerbee.dev_rzusbstick.RZUSBSTICK-class.html#set_channel" class="summary-sig-name">set_channel</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">channel</span>)</span><br />
      Sets the radio interface to the specifid channel.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="killerbee.dev_rzusbstick-pysrc.html#RZUSBSTICK.set_channel">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">None</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="killerbee.dev_rzusbstick.RZUSBSTICK-class.html#inject" class="summary-sig-name">inject</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">packet</span>,
        <span class="summary-sig-arg">channel</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">count</span>=<span class="summary-sig-default">1</span>,
        <span class="summary-sig-arg">delay</span>=<span class="summary-sig-default">0</span>)</span><br />
      Injects the specified packet contents.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="killerbee.dev_rzusbstick-pysrc.html#RZUSBSTICK.inject">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">List</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="killerbee.dev_rzusbstick.RZUSBSTICK-class.html#pnext" class="summary-sig-name">pnext</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">timeout</span>=<span class="summary-sig-default">100</span>)</span><br />
      Returns packet data as a string, else None.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="killerbee.dev_rzusbstick-pysrc.html#RZUSBSTICK.pnext">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">None</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="killerbee.dev_rzusbstick.RZUSBSTICK-class.html#ping" class="summary-sig-name">ping</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">da</span>,
        <span class="summary-sig-arg">panid</span>,
        <span class="summary-sig-arg">sa</span>,
        <span class="summary-sig-arg">channel</span>=<span class="summary-sig-default">None</span>)</span><br />
      Not yet implemented.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="killerbee.dev_rzusbstick-pysrc.html#RZUSBSTICK.ping">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
</table>
<!-- ==================== METHOD DETAILS ==================== -->
<a name="section-MethodDetails"></a>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
  <td colspan="2" class="table-header">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
      <tr valign="top">
        <td align="left"><span class="table-header">Method Details</span></td>
        <td align="right" valign="top"
         ><span class="options">[<a href="#section-MethodDetails"
         class="privatelink" onclick="toggle_private();"
         >hide private</a>]</span></td>
      </tr>
    </table>
  </td>
</tr>
</table>
<a name="__init__"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">__init__</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">dev</span>,
        <span class="sig-arg">bus</span>)</span>
    <br /><em class="fname">(Constructor)</em>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="killerbee.dev_rzusbstick-pysrc.html#RZUSBSTICK.__init__">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Instantiates the KillerBee class for the RZUSBSTICK hardware.</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>dev</code></strong> (TODO) - USB device identifier</li>
        <li><strong class="pname"><code>bus</code></strong> (TODO) - Identifies the USB bus the device is on</li>
    </ul></dd>
    <dt>Returns: None</dt>
        <dd>None</dd>
  </dl>
</td></tr></table>
</div>
<a name="__handle_open"></a>
<div class="private">
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">__handle_open</span>(<span class="sig-arg">self</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="killerbee.dev_rzusbstick-pysrc.html#RZUSBSTICK.__handle_open">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <pre class="literalblock">

Opens the device identified as self.dev, populating self.handle.
An RZUSBSTICK has a hierarchy of:
\_ Config value: 1
  \_ Interface number 0, with alternate setting 0
     |- Endpoint 132 for responses
     |- Endpoint 2   for control
     |- Endpoint 129 for packets

</pre>
  <dl class="fields">
  </dl>
</td></tr></table>
</div>
<a name="close"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">close</span>(<span class="sig-arg">self</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="killerbee.dev_rzusbstick-pysrc.html#RZUSBSTICK.close">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Closes the device handle.  To be re-used, class should be 
  re-instantiated.</p>
  <dl class="fields">
    <dt>Returns: None</dt>
        <dd>None</dd>
  </dl>
</td></tr></table>
</div>
<a name="__set_capabilities"></a>
<div class="private">
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">__set_capabilities</span>(<span class="sig-arg">self</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="killerbee.dev_rzusbstick-pysrc.html#RZUSBSTICK.__set_capabilities">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Sets the capability information for RZUSB devices.</p>
  <dl class="fields">
    <dt>Returns: None</dt>
        <dd>None</dd>
  </dl>
</td></tr></table>
</div>
<a name="get_dev_info"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">get_dev_info</span>(<span class="sig-arg">self</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="killerbee.dev_rzusbstick-pysrc.html#RZUSBSTICK.get_dev_info">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Returns device information in a list identifying the device 
  identifier, product string and serial number in a list of strings.</p>
  <dl class="fields">
    <dt>Returns: List</dt>
        <dd>List of 3 strings identifying device.</dd>
  </dl>
</td></tr></table>
</div>
<a name="__usb_write"></a>
<div class="private">
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">__usb_write</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">endpoint</span>,
        <span class="sig-arg">data</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="killerbee.dev_rzusbstick-pysrc.html#RZUSBSTICK.__usb_write">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Write data to the USB device opened as self.handle.</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>endpoint</code></strong> (Integer) - The USB endpoint to write to</li>
        <li><strong class="pname"><code>data</code></strong> (Mixed) - The data to send to the USB endpoint</li>
    </ul></dd>
  </dl>
</td></tr></table>
</div>
<a name="_set_mode"></a>
<div class="private">
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">_set_mode</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">mode</span>=<span class="sig-default">0</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="killerbee.dev_rzusbstick-pysrc.html#RZUSBSTICK._set_mode">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Change the operating mode of the USB device to one of the 
  RZ_CMD_MODE_* values.  Currently, RZ_CMD_MODE_AC (Air Capture) is the 
  only mode that is used other than RZ_CMD_MODE_NONE.</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>mode</code></strong> (Integer) - Operating mode for the USB stick</li>
    </ul></dd>
    <dt>Returns: None</dt>
  </dl>
</td></tr></table>
</div>
<a name="sniffer_on"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">sniffer_on</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">channel</span>=<span class="sig-default">None</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="killerbee.dev_rzusbstick-pysrc.html#RZUSBSTICK.sniffer_on">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Turns the sniffer on such that pnext() will start returning observed 
  data.  Will set the command mode to Air Capture if it is not already 
  set.</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>channel</code></strong> (Integer) - Sets the channel, optional</li>
    </ul></dd>
    <dt>Returns: None</dt>
  </dl>
</td></tr></table>
</div>
<a name="sniffer_off"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">sniffer_off</span>(<span class="sig-arg">self</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="killerbee.dev_rzusbstick-pysrc.html#RZUSBSTICK.sniffer_off">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Turns the sniffer off, freeing the hardware for other functions.  It 
  is not necessary to call this function before closing the interface with 
  close().</p>
  <dl class="fields">
    <dt>Returns: None</dt>
  </dl>
</td></tr></table>
</div>
<a name="jammer_on"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">jammer_on</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">channel</span>=<span class="sig-default">None</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="killerbee.dev_rzusbstick-pysrc.html#RZUSBSTICK.jammer_on">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Not yet implemented.  Stay tuned.</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>channel</code></strong> (Integer) - Sets the channel, optional</li>
    </ul></dd>
    <dt>Returns: None</dt>
  </dl>
</td></tr></table>
</div>
<a name="jammer_off"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">jammer_off</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">channel</span>=<span class="sig-default">None</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="killerbee.dev_rzusbstick-pysrc.html#RZUSBSTICK.jammer_off">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Not yet implemented.  Stay tuned.</p>
  <dl class="fields">
    <dt>Returns: None</dt>
        <dd>None</dd>
  </dl>
</td></tr></table>
</div>
<a name="set_channel"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">set_channel</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">channel</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="killerbee.dev_rzusbstick-pysrc.html#RZUSBSTICK.set_channel">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Sets the radio interface to the specifid channel.  Currently, support 
  is limited to 2.4 GHz channels 11 - 26.</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>channel</code></strong> (Integer) - Sets the channel, optional</li>
    </ul></dd>
    <dt>Returns: None</dt>
  </dl>
</td></tr></table>
</div>
<a name="inject"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">inject</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">packet</span>,
        <span class="sig-arg">channel</span>=<span class="sig-default">None</span>,
        <span class="sig-arg">count</span>=<span class="sig-default">1</span>,
        <span class="sig-arg">delay</span>=<span class="sig-default">0</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="killerbee.dev_rzusbstick-pysrc.html#RZUSBSTICK.inject">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Injects the specified packet contents.</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>packet</code></strong> (String) - Packet contents to transmit, without FCS.</li>
        <li><strong class="pname"><code>channel</code></strong> (Integer) - Sets the channel, optional</li>
        <li><strong class="pname"><code>count</code></strong> (Integer) - Transmits a specified number of frames, def=1</li>
        <li><strong class="pname"><code>delay</code></strong> (Float) - Delay between each frame, def=1</li>
    </ul></dd>
    <dt>Returns: None</dt>
  </dl>
</td></tr></table>
</div>
<a name="pnext"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">pnext</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">timeout</span>=<span class="sig-default">100</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="killerbee.dev_rzusbstick-pysrc.html#RZUSBSTICK.pnext">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Returns packet data as a string, else None.</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>timeout</code></strong> (Integer) - Timeout to wait for packet reception in usec</li>
    </ul></dd>
    <dt>Returns: List</dt>
        <dd>Returns None is timeout expires and no packet received.  When a 
          packet is received, a list is returned, in the form [ String: 
          packet contents | Bool: Valid CRC | Int: Unscaled RSSI ]</dd>
  </dl>
</td></tr></table>
</div>
<a name="ping"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">ping</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">da</span>,
        <span class="sig-arg">panid</span>,
        <span class="sig-arg">sa</span>,
        <span class="sig-arg">channel</span>=<span class="sig-default">None</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="killerbee.dev_rzusbstick-pysrc.html#RZUSBSTICK.ping">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Not yet implemented.</p>
  <dl class="fields">
    <dt>Returns: None</dt>
        <dd>None</dd>
  </dl>
</td></tr></table>
</div>
<br />
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="killerbee-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Project homepage -->
      <th class="navbar" align="right" width="100%">
        <table border="0" cellpadding="0" cellspacing="0">
          <tr><th class="navbar" align="center"
            ><a class="navbar" target="_top" href="http://code.google.com/p/killerbee/">KillerBee</a></th>
          </tr></table></th>
  </tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
  <tr>
    <td align="left" class="footer">
    Generated by Epydoc 3.0.1 on Mon Dec 30 17:49:12 2013
    </td>
    <td align="right" class="footer">
      <a target="mainFrame" href="http://epydoc.sourceforge.net"
        >http://epydoc.sourceforge.net</a>
    </td>
  </tr>
</table>

<script type="text/javascript">
  <!--
  // Private objects are initially displayed (because if
  // javascript is turned off then we want them to be
  // visible); but by default, we want to hide them.  So hide
  // them unless we have a cookie that says to show them.
  checkCookie();
  // -->
</script>
</body>
</html>
